package com.clkj.xiuzheng.dao.shangcheng;

import com.clkj.xiuzheng.pojo.shangcheng.ProductCategory;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

@Repository
public interface ScProductCategoryMapper extends Mapper<ProductCategory>, MySqlMapper<ProductCategory> {

    @Select("select top 3 * from t_xz_productCategory where parent_id = 0  and category_status = 1 order by product_category_id asc ")
    List<ProductCategory> listCategory();
}
